<?php
include 'config.php';

if(isset($_GET['version']) && isset($_GET['filename'])){
	
	$filename = $apiTxtDir . '/' . $_GET['filename'];
	
	$contents = file_get_contents($filename);
	
	if($contents){
		echo $contents;
	}else{
		echo '{}';
	}
	
}else{
	// 参数不存在则返回空JSON
	echo '{}';
}


